﻿using System;
using System.Collections.Generic;
using System.Text;
using XKPlatform.DataModels;

namespace XKPlatform.Common.Const
{
    public class GlobleConst
    {
        #region 鉴权服务配置信息
        public static string TokenEndpoint;

        public static string ClientId;

        public static string ClientSecret;
        #endregion

        #region  权限认证配置
        public static string CertificatesCerPath;

        public static string CertificatesPassword;
        #endregion
        #region report service  配置 认证服务调用
        public static string IdentityServiceUri;
        public static string IdentityServiceUseHttps;
        public static string IdentityServiceServiceName;
        public static string IdentityServiceDefaultScheme;
        public static string IdentityServiceOrigins;
        #endregion
        #region 地图接口
        public static string mapUrl;
        #endregion
        #region 地图接口
        public static string OrginalDataContext;
        #endregion
        #region
        public static string SmartFocastDataContext;
        #endregion
        #region 队列配置 
        public static string QueueConStr = string.Empty;
        public static string QueueName = string.Empty;
        #endregion

        #region 缓存配置
        public static string RedisConStr = "127.0.0.1:6379";//"222.128.29.217:16379";
        public static int expTime = 2;//小时
        #endregion

        #region 数据库连接配置list
        // public static IList<SysDbConnectionModel> DbConnectionStrDic;
        #endregion

        #region RabbitMQ配置
        public static string RabbitMQHostName = "222.128.29.217";
        public static int RabbitMQPort = 15672;
        public static string RabbitMQUserName = "admin";//用户账号
        public static string RabbitMQPassword = "1qaz@WSX1";//用户密码
        public static string RabbitMQVirtualHost = "/";
        public static bool RabbitMQAutomaticRecoveryEnabled = true;
        public static TimeSpan RabbitMQNetworkRecoveryInterval = TimeSpan.FromSeconds(5);

        public static string RabbitMQTaskExchange = "delay";

        public static string RabbitMQTaskRoutingKey = "delay";
        public static string RabbitMQTaskRoutingKey1 = "delay_key";
        public static string RabbitMQTaskQueueName = "delay_queue1";

        public static string LogQueueName = "log";
        #endregion

        #region 网关配置
        public static string Host = "https://localhost:4001";
        #endregion

         

        public static bool IsWriteOperationLog { get; set; } // 是否写操作日志

        #region 微信相关配置常量
        public static string appid;
        public static string secret;

        public static string openidUrl;
        public static string openidgrantType;

        public static string accesstokenUrl;
        public static string accesstokenType;
        #endregion
    }
}
